﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

//Represents a gravity box

namespace Doodleberg
{
    class GravityBox
    {
        public Rectangle box;
        public Vector2 gravity;

        public GravityBox(Rectangle newGravBox, Vector2 newGravity)
        {
            box = newGravBox;
            gravity = newGravity;
        }

        public void draw(SpriteBatch spriteBatch)
        {
            spriteBatch.Draw(
                Global.level.tex_gravitybox,
                new Vector2(box.Left, box.Top),
                null,
                Color.White,
                0.0f,
                Vector2.Zero,
                new Vector2(box.Width, box.Height) / Global.level.tex_gravitybox.Width,
                SpriteEffects.None,
                0.9f);
        }
    }
}
